<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:wicket="http://wicket.apache.org">
    <head>
        <title>ITAT-Registracia</title>
        <link wicket:id='stylesheet'/>
        <script wicket:id='script'></script>
        <script type="text/javascript" >
            $(document).ready(function(){
                $("#login").change(function(){
                    
                    $login = document.getElementById("login").value;
                    
                    
                    $.post("Control_Servlet", {login:$login}, function(data){
                        $("#dostupne").html(data);
                    })
                });
            });
        </script>
    </head>
    <body>
        <span wicket:id='mainNavigation'/>
        <h1><span>Registrácia do konferenčného systému ITAT</span><br/></h1>

        <form wicket:id="regForm" >
            <table border="0" width="0" align="center">
                <tbody>
                    <tr>
                        <td>Meno* : </td>
                        <td><input wicket:id="firstName" type="text"/><br/></td>
                    </tr>
                    <tr>
                        <td>Priezvisko* : </td>
                        <td><input wicket:id ="lastName" type="text"/><br/></td>
                    </tr>
                    <tr>
                        <td>Login* : </td>
                        <td><input id="login" wicket:id ="login" type="text" align="middle"/><br/></td>
                    </tr>
                    <tr>
                        <td>Heslo* : </td>
                        <td><input wicket:id="heslo" type="password"/><br/></td>
                    </tr>
                    <tr>
                        <td>Adresa* : </td>
                        <td><input wicket:id="adresa" type="text"/><br/></td>
                    </tr>
                    <tr>
                        <td>Telefon: </td>
                        <td><input wicket:id="telCislo" type="text"/><br/></td>
                    </tr>
                    <tr>
                        <td>E-mail* : </td>
                        <td><input wicket:id="email" type="text"/><br/></td>
                    </tr>
                    <tr>
                        <td>Spolocnost : </td>
                        <td><input wicket:id="spolocnost" type="text"/><br/></td>
                    </tr>
                    <tr>
                        <td>Krajina :</td>
                        <td><select wicket:id="krajina">
                                <option>Slovensko</option>
                                <option>Česká republika</option>
                                <option>Maďarsko</option>
                                <option>Poľsko</option>
                            </select><br/></td>
                    </tr>
                </tbody>
            </table>
            <div align="center">
                <span>Polička označené * musia byť vyplnené.</span><br/>
                <p> <input type="reset" value="Reset"/> <input id="sub" type="submit" value="Register"/></p>
            </div>
        </form><br/>

        <span wicket:id="errors"></span>
        <span id="dostupne"></span>


    </body>
</html>
